import request from '@/utils/request'



// 查询考核指标列表
export function listIndex(query) {
  return request({
    url: '/kh/index/list',
    method: 'get',
    params: query
  })
}

// 查询考核指标详细
export function getIndex(id) {
  return request({
    url: '/kh/index/' + id,
    method: 'get'
  })
}

// 新增考核指标
export function addIndex(data) {
  return request({
    url: '/kh/index',
    method: 'post',
    data: data
  })
}

// 修改考核指标
export function updateIndex(data) {
  return request({
    url: '/kh/index',
    method: 'put',
    data: data
  })
}

// 删除考核指标
export function delIndex(id) {
  return request({
    url: '/kh/index/' + id,
    method: 'delete'
  })
}



// 导出考核指标
export function exportIndex(query) {
  return request({
    url: '/kh/index/export',
    method: 'get',
    params: query
  })
}
